import request, { type Result } from '@/utils/request'

/**
 *文件上传(图片/文件统一上传)
 * @param {*} data
 * @returns
 */
export async function addSysObsUpload<T>(data: T): Promise<Result> {
  return await request({
    url: '/sys/obs/upload',
    method: 'post',
    data,
  })
}
